package com.zxy.supplier_system.server.service

import com.zxy.supplier_system.server.repository.GoodsUnitRepository
import org.springframework.stereotype.Service

@Service
class GoodsUnitService(
    private val goodsUnitRepository: GoodsUnitRepository
) {
    fun getAllUnits(): List<String> {
        return this.goodsUnitRepository.getAllNames()
    }

}
